﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Master/MasterBody.Master" AutoEventWireup="true" CodeBehind="Risk.aspx.cs" Inherits="Besture.UI.Service.Risk" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Content" runat="server">

    <div class="banner">
    	<div class="help-ban w980"><img src="/Upload/Images/Banner/<%=_BannerTop.ImageUrl%>"/>
        	<%=_BannerTop.ImageRemark%>
        </div>
    </div>
    
	<div class="main">
		<div class="w980">
        	<div class="position">
                您当前的位置：<a href="/Index.aspx">首页</a> &gt; <a href="Products.aspx">产品与服务</a> &gt; 服务介绍
            </div>
            <div class="map-cen clearfix">
            	<div class="map-left">
                      <h2>产品与服务</h2>
                      <div class="leftnav">
                          <ul>
                              <li><a href="Products.aspx"><span>产品介绍</span> </a></li>
                              <li class="on"><a href="Financial.aspx"><span>服务介绍</span></a>
                              	  <ul class="submenu"><asp:Repeater ID="rpFinancialList" runat="server"><ItemTemplate>
                                  	  <li><a href="Financial.aspx#fina-one<%#Eval("ID") %>"><%#Eval("ImageLink")%></a></li>
                                      </ItemTemplate></asp:Repeater>
                                      <li class="on"><a href="javascript:void(0);">在线服务</a></li>
                                  </ul>
                              </li>
                         </ul>
                     </div>
                </div>
                <div class="map-right">
                	<ul class="products-ul clearfix">
                    	<li class="on">在线风险测试</li>
                        <li>在线资产配置</li>
                    </ul>
                    <div class="products-all">
                    	<div class="products-one">
                        	<p>测试说明：我们根据您填写的信息得出您目前风险特征分析</p>
                            <table width="100%" class="risk-table">
                               <tr class="risk-tr">
                               	<td colspan="2">基本信息</td>
                               </tr>
                               <tr class="risk-tr1">
                               	<td width="355"><div class="clearfix"><span class="risk-icon">*</span>真实姓名： <input id="txtNameTest" runat="server" type="text" value="" class="required" name="one"/></div></td>
                                <td><div class="clearfix"><span class="risk-icon">*</span>手机号码： <input id="txtMobilTest" runat="server" type="text" value="" class="required mobile" name="one1"/></div></td>
                               </tr>
                               <tr class="risk-tr">
                               	<td colspan="2">承受能力测试</td>
                               </tr>
                               <tr class="risk-tr2 risk-tra">
                               	<td><span>1、您对投资的了解程度</span> <asp:DropDownList runat="server" ID="ddlInvestLevel"  class=""></asp:DropDownList></td>
                                <td><span>2、您的投资经验</span> <asp:DropDownList runat="server" ID="ddlInvestExp"  class=""></asp:DropDownList></td>
                               </tr>
                               <tr class="risk-tr2">
                               	<td><span>3、您的置业情况</span> <asp:DropDownList runat="server" ID="ddlInvestHouse"  class=""></asp:DropDownList></td>
                                <td><span>4、您目前可投资金额</span> <asp:DropDownList runat="server" ID="ddlInvestFund"  class=""></asp:DropDownList></td>
                               </tr>
                               <tr class="risk-tr">
                               	<td colspan="2">风险偏好测试</td>
                               </tr>
                               <tr class="risk-tr2 risk-tra">
                               	<td><span>1、您的投资首选因素</span> <asp:DropDownList runat="server" ID="ddlRiskReason"  class=""></asp:DropDownList></td>
                                <td><span>2、您期望的年化收益率</span> <asp:DropDownList runat="server" ID="ddlRiskYeild"  class=""></asp:DropDownList></td>
                               </tr>
                               <tr class="risk-tra">
                               	<td colspan="2"><span>3、您目前的主要投资方向</span> </td>
                               </tr>
                               <tr class="risk-tr3">
                               	<td colspan="2">
                                	<div class="risk-div clearfix">
                                    	<asp:CheckBoxList runat="server" ID="ckbRiskDirection" class="" RepeatDirection="Horizontal" RepeatColumns="5"></asp:CheckBoxList>
                                    </div>
                                </td>
                               </tr>
                               <tr class="risk-tra">
                               	<td colspan="2"><span>4、您打算深入了解的投资方向</span> </td>
                               </tr>
                               <tr class="risk-tr3">
                               	<td colspan="2">
                                	<div class="risk-div clearfix">
                                    	<asp:CheckBoxList runat="server" ID="ckbRiskDeepDirection" RepeatDirection="Horizontal" class="" RepeatColumns="5"></asp:CheckBoxList>
                                    </div>
                                </td>
                               </tr>
                               <tr class="risk-tra">
                               	<td colspan="2"><span>5、您未来避免的投资方向</span> </td>
                               </tr>
                               <tr class="risk-tr3">
                               	<td colspan="2">
                                	<div class="risk-div clearfix">
                                    	<asp:CheckBoxList runat="server" ID="ckbRiskFutureDirection" RepeatDirection="Horizontal"  class="" RepeatColumns="5"></asp:CheckBoxList>
                                    </div>
                                </td>
                               </tr>
                               <tr class="risk-trs">
                               	<td colspan="2">
                                	<div>
                                    <asp:Button runat="server" ID="btnRiskTest" CssClass="risk-trs1" Text="客户风险评分" OnClick="btnRiskTest_Click"  />
                                        <input type="reset" value="重新填写" class="risk-trs2"/>
                                    </div>
                                </td>
                               </tr>
                            </table>
                            
						</div>
                        
                        <div class="products-one" style="display:none">
                        	<p>资产配置说明：我们根据您填写的信息得出您目前风险特征分析，人工分析得出的结果，或联系恒君客服预约专属于您的理财师，预约电话 400-xxxXXXX</p>
                            <div class="risk-start">
                                <table width="100%" class="risk-table">
                                  <tr class="risk-tr">
                                    <td>基本信息</td>
                                   </tr>
                                   <tr class="risk-tr1">
                                    <td>
                                        <div class="clearfix"><span class="risk-icon">*</span>真实姓名： <input ID="txtMobile" runat="server" type="text" value="" class="required" name="end"/></div>
                                        <div class="clearfix"><span class="risk-icon">*</span>手机号码： <input ID="txtName" runat="server" type="text" value="" class="required mobile" name="end1"/></div></td>
                                   </tr>
                                   <tr class="risk-trq risk-tra">
                                    <td>健康状况： <input type="text" id="txtHealthStatus" runat="server" value=""/></td>
                                   </tr>
                                   <tr class="risk-trq">
                                    <td>消费偏好： <input ID="txtPreference" runat="server" type="text" value=""/></td>
                                   </tr>
                                   <tr class="risk-tra risk-tr2">
                                    <td>从事行业： <asp:DropDownList runat="server" ID="ddlIndustry"  class=""></asp:DropDownList></td>
                                   </tr>
                                   <tr class="risk-trw">
                                    <td><span>你是否拥有自己的企业：</span><asp:RadioButtonList runat="server" ID="rbtnIsHasCom"  
                                            class="" RepeatDirection="Horizontal"><asp:ListItem Text="否" Value="0"></asp:ListItem><asp:ListItem Text="是" Value="1"></asp:ListItem></asp:RadioButtonList></td>
                                   </tr>
                                   <tr class="risk-trw risk-tra">
                                    <td>
                                        <span>收入来源：</span> 
                                        <asp:CheckBoxList runat="server" ID="ckbIncomeSource"  class=""  RepeatDirection="Horizontal" RepeatColumns="6"></asp:CheckBoxList>
                                    </td>
                                   </tr>
                                   <tr class="risk-trq1">
                                    <td>父母赡养费（年均）： <input ID="txtAlimony" runat="server" type="text" value=""/></td>
                                   </tr>
                                   <tr class="risk-tra risk-tr2">
                                    <td>赡养费用途： <asp:DropDownList runat="server" ID="ddlAlimonyUse"  class=""></asp:DropDownList></td>
                                   </tr>
                                </table>
                            </div>
                            <div class="risk-start">
                            	<p class="risk-p clearfix">投资经历 <span class="risk-p1">&nbsp;</span></p>
                                <table width="100%" class="risk-table" style="display:none">
                                  <tr>
                                  	<td>擅长投资方向：</td>
                                  </tr>
                                  <tr class="risk-six risk-tra">
                                  	<td>
                                    	<span class="risk-six1">曾经投资产品：</span>
                                    	<div class="risk-div1 clearfix">
                                            <asp:CheckBoxList runat="server" ID="ckbOnceInvest" RepeatColumns="6" class="" 
                                                RepeatDirection="Horizontal"></asp:CheckBoxList>
                                        </div>
                                    </td>
                                  </tr>
                                  <tr class="risk-six">
                                  	<td>
                                    	<span class="risk-six1">投资时关注的问题：</span>
                                    	<div class="risk-div1 clearfix">
                                            <asp:CheckBoxList runat="server" ID="ckbAttentionInvest" RepeatColumns="6" class="" 
                                                RepeatDirection="Horizontal"></asp:CheckBoxList>
                                        </div>
                                    </td>
                                  </tr>
                                  <tr class="risk-six risk-tra">
                                  	<td>
                                    	<span class="risk-six1">投资资讯主要来源：</span>
                                    	<div class="risk-div1 clearfix">
                                            <asp:CheckBoxList runat="server" ID="ckbInvestSource" RepeatColumns="6" class="" 
                                                RepeatDirection="Horizontal"></asp:CheckBoxList>
                                        </div>
                                    </td>
                                  </tr>
                                </table>
                            </div>
                            <div class="risk-start">
                            	<p class="risk-p clearfix">理财规划项目 <span class="risk-p1">&nbsp;</span></p>
                                <table width="720" class="risk-table risk-tablea">
                                  <tr class="risk-tr1">
                                    <td width="355">
                                    	<div class="clearfix">
                                        	<span class="risk-add"><span class="risk-icon">*</span>起始可用投资金额：</span> 
                                            <input id="txtStartFund" runat="server" type="text" value="" class="required" name="enda"/>
                                        </div>
                                    </td>
                                    <td>
                                        <div class="clearfix">
                                        	<span class="risk-add"><span class="risk-icon">*</span>年结余投资保障比：</span> 
                                            <input ID="txtYearInvest" runat="server" type="text" value="" class="required" name="enda1"/>
                                        </div>
                                    </td>
                                  </tr>
                                  <tr class="risk-tr risk-trp">
                                    <td colspan="2">理财规划目标  继续添加理财目标</td>
                                  </tr>
                                  <tr class="risk-tr1">
                                    <td>
                                    	<div class="clearfix">
                                        	<span class="risk-add"><span class="risk-icon">*</span>目标截止日期：</span> 
                                            <input ID="txtEndTime" runat="server" type="text" value="" onclick="WdatePicker();" class="required Wdate" name="enda2"/>
                                        </div>
                                    </td>
                                    <td>
                                        <div class="clearfix">
                                        	<span class="risk-add"><span class="risk-icon">*</span>理财目标描述：</span> 
                                            <input ID="txtDescription" runat="server" type="text" value="" class="required" name="enda3"/>
                                        </div>
                                    </td>
                                  </tr>
                                  <tr class="risk-tr1">
                                    <td>
                                    	<div class="clearfix">
                                        	<span class="risk-add"><span class="risk-icon">*</span>理财目标金额：</span> 
                                            <input ID="txtTargetFund" runat="server" type="text" value="" class="required" name="enda4"/>
                                        </div>
                                    </td>
                                    <td>
                                        <div class="clearfix">
                                        	<span class="risk-add"><span class="risk-icon">*</span>目标描述：</span> 
                                            <input ID="txtTargetDescription" runat="server" type="text" value="" class="required" name="enda5"/>
                                        </div>
                                    </td>
                                  </tr>
                                </table>
                            </div>
                            <div class="risk-start">
                            	<p class="risk-p clearfix">财务信息 <span class="risk-p1">&nbsp;</span></p>
                                <table width="720" class="risk-table" style="display:none">
                                  <tr class="risk-tr1">
                                    <td width="355">
                                    	<div class="clearfix">
                                        	<span class="risk-add">年收入：</span> 
                                            <input ID="txtYearIn" runat="server" type="text" value=""/>
                                        </div>
                                    </td>
                                    <td>
                                        <div class="clearfix">
                                        	<span class="risk-add">年支出：</span> 
                                            <input ID="txtYearOut" runat="server" type="text" value=""/>
                                        </div>
                                    </td>
                                  </tr>
                                  <tr class="risk-tr1">
                                    <td>
                                    	<div class="clearfix">
                                        	<span class="risk-add">本人工资收入：</span> 
                                            <input ID="txtMySalaryIn" runat="server" type="text" value=""/>
                                        </div>
                                    </td>
                                    <td>
                                        <div class="clearfix">
                                        	<span class="risk-add">基本生活开销：</span> 
                                            <input ID="txtMySalaryOut" runat="server" type="text" value=""/>
                                        </div>
                                    </td>
                                  </tr>
                                  <tr class="risk-tr1">
                                    <td>
                                    	<div class="clearfix">
                                        	<span class="risk-add">配偶工资收入：</span> 
                                            <input ID="txtWifeSalaryIn" runat="server" type="text" value=""/>
                                        </div>
                                    </td>
                                    <td>
                                        <div class="clearfix">
                                        	<span class="risk-add">医疗费用：</span> 
                                            <input ID="txtMedicalOut" runat="server" type="text" value=""/>
                                        </div>
                                    </td>
                                  </tr>
                                  <tr class="risk-tr1">
                                    <td>
                                    	<div class="clearfix">
                                        	<span class="risk-add">奖金收入：</span> 
                                            <input ID="txtBonusIn" runat="server" type="text" value=""/>
                                        </div>
                                    </td>
                                    <td>
                                        <div class="clearfix">
                                        	<span class="risk-add">教育费用：</span> 
                                            <input ID="txtEducationOut" runat="server" type="text" value=""/>
                                        </div>
                                    </td>
                                  </tr>
                                  <tr class="risk-tr1">
                                    <td>
                                    	<div class="clearfix">
                                        	<span class="risk-add">利息收入：</span> 
                                            <input ID="txtInterestIn" runat="server" type="text" value=""/>
                                        </div>
                                    </td>
                                    <td>
                                        <div class="clearfix">
                                        	<span class="risk-add">保险支出：</span> 
                                            <input ID="txtSafeOut" runat="server" type="text" value=""/>
                                        </div>
                                    </td>
                                  </tr>
                                  <tr class="risk-tr1">
                                    <td>
                                    	<div class="clearfix">
                                        	<span class="risk-add">租金收入：</span> 
                                            <input ID="txtRentIn" runat="server" type="text" value=""/>
                                        </div>
                                    </td>
                                    <td>
                                        <div class="clearfix">
                                        	<span class="risk-add">其它支出：</span> 
                                            <input ID="txtOtherOut" runat="server" type="text" value=""/>
                                        </div>
                                    </td>
                                  </tr>
                                  <tr class="risk-tr1">
                                    <td>
                                    	<div class="clearfix">
                                        	<span class="risk-add">其它收入：</span> 
                                            <input ID="txtOtherIn" runat="server" type="text" value=""/>
                                        </div>
                                    </td>
                                    <td>
                                        <div class="clearfix">
                                        	<span class="risk-add">年支出增长率：</span> 
                                            <input ID="txtYearOutRate" runat="server" type="text" value=""/>
                                        </div>
                                    </td>
                                  </tr>
                                  <tr class="risk-tr1">
                                    <td>
                                    	<div class="clearfix">
                                        	<span class="risk-add">年收入增长率：</span> 
                                            <input ID="txtYearInRate" runat="server" type="text" value=""/>
                                        </div>
                                    </td>
                                    <td>
                                        <div class="clearfix">
                                        	&nbsp;
                                        </div>
                                    </td>
                                  </tr>
                                  <tr class="risk-tr1">
                                    <td>
                                    	<div class="clearfix">
                                        	<span class="risk-add">资产：</span> 
                                            <input ID="txtAssets" runat="server" type="text" value=""/>
                                        </div>
                                    </td>
                                    <td>
                                        <div class="clearfix">
                                        	<span class="risk-add">负债状况：</span> 
                                            <input ID="txtLiabilities" runat="server" type="text" value=""/>
                                        </div>
                                    </td>
                                  </tr>
                                  <tr class="risk-tr1">
                                    <td>
                                    	<div class="clearfix">
                                        	<span class="risk-add">现金类：</span> 
                                            <input ID="txtCash" runat="server" type="text" value=""/>
                                        </div>
                                    </td>
                                    <td>
                                        <div class="clearfix">
                                        	<span class="risk-add">公积金贷款：</span> 
                                            <input ID="txtFundLoans" runat="server" type="text" value=""/>
                                        </div>
                                    </td>
                                  </tr>
                                  <tr class="risk-tr1">
                                    <td>
                                    	<div class="clearfix">
                                        	<span class="risk-add">固定收益类：</span> 
                                            <input ID="txtFixedIn" runat="server" type="text" value=""/>
                                        </div>
                                    </td>
                                    <td>
                                        <div class="clearfix">
                                        	<span class="risk-add">个人借贷：</span> 
                                            <input ID="txtPersonalLoan" runat="server" type="text" value=""/>
                                        </div>
                                    </td>
                                  </tr>
                                  <tr class="risk-tr1">
                                    <td>
                                    	<div class="clearfix">
                                        	<span class="risk-add">浮动收益类：</span> 
                                            <input ID="txtFloatingIn" runat="server" type="text" value=""/>
                                        </div>
                                    </td>
                                    <td>
                                        <div class="clearfix">
                                        	<span class="risk-add">商业住房贷款：</span> 
                                            <input ID="txtHousingLoans" runat="server" type="text" value=""/>
                                        </div>
                                    </td>
                                  </tr>
                                  <tr class="risk-tr1">
                                    <td>
                                    	<div class="clearfix">
                                        	<span class="risk-add">动产投资类：</span> 
                                            <input ID="txtRealEstate" runat="server" type="text" value=""/>
                                        </div>
                                    </td>
                                    <td>
                                        <div class="clearfix">
                                        	<span class="risk-add">其它负债：</span> 
                                            <input ID="txtOtherDebt" runat="server" type="text" value=""/>
                                        </div>
                                    </td>
                                  </tr>
                                  <tr class="risk-trq">
                                    <td colspan="2">
                                    	<div class="clearfix">
                                        	<span class="risk-add">不动产自用类：</span> 
                                            <input ID="txtNoRealEstate" runat="server" type="text" value=""/>
                                        </div>
                                    </td>
                                  </tr>
                                  <tr class="risk-trq">
                                    <td colspan="2">
                                    	<div class="clearfix">
                                        	<span class="risk-add">保险类：</span> 
                                            <input ID="txtInsurance" runat="server" type="text" value=""/>
                                        </div>
                                    </td>
                                  </tr>
                                  <tr class="risk-trq">
                                    <td colspan="2">
                                    	<div class="clearfix">
                                        	<span class="risk-add">其它资产：</span> 
                                            <input ID="txtOtherAssets" runat="server" type="text" value=""/>
                                        </div>
                                    </td>
                                  </tr>
                                  <tr class="risk-trq">
                                    <td colspan="2">
                                    	<div class="clearfix">
                                        	<span class="risk-add">可投资资产规模：</span> 
                                            <input ID="txtAssetsScale" runat="server" type="text" value=""/>
                                        </div>
                                    </td>
                                  </tr>                            
                                </table>
                            </div>
                            <table width="100%">
                              <tr class="risk-trs">
                                <td colspan="2">
                                    <div>
                                    <asp:Button runat="server" ID="btnSubmit" CssClass="risk-trs1" Text="客户风险评分" OnClick="btnSubmit_Click"  />
                                        <input type="reset" value="重新填写" class="risk-trs2"/>
                                    </div>
                                </td>
                               </tr>
                            </table>

						</div>
                    </div>
                </div>
            </div>
        </div>
        <input type="hidden" id="hidRiskType" value="0" />
	</div><!-- //main -->
    <script type="text/javascript">
        $(function () {
            $("#TopMenu li").removeClass("on").eq(9).addClass("on");
            $('.products-ul li').click(function () {
                var index = $(this).index();
                ShowRisk(index);
                //                
                //                $(this).addClass("on").siblings().removeClass("on");
                //                $(".products-all .products-one").eq(index).show().siblings().hide();
                //                $("#hidRiskType").val(index);
            });

            $(".risk-p").click(function () {
                var a = $(this).siblings();
                if (a.is(":visible")) {
                    a.hide(); //隐藏
                    //a.slideUp(); 
                    $(this).children("span").addClass("risk-p1").removeClass("risk-p2");
                }
                else {
                    a.show(); //展开
                    //a.slideDown();
                    $(this).children("span").addClass("risk-p2").removeClass("risk-p1");
                    //$(this).parent().siblings().find("risk-table").slideUp();

                }
            });
        });

        function ShowRisk(index) {
            $('.products-ul li').eq(index).addClass("on").siblings().removeClass("on");
            $(".products-all .products-one").eq(index).show().siblings().hide();
            $("#hidRiskType").val(index);
        }

        function CheckInfo() {
            var index = $("#hidRiskType").val();
            if (index == "1") {
                var t = $("#txtName").val() + "";
                if (t == "") {
                    alert("姓名不能为空");
                    return false;
                }
                t = $("#txtMobil").val() + "";
                if (t == "") {
                    alert("手机号码不能为空");
                    return false;
                }
                t = $("#txtStartFund").val() + "";
                if (t == "") {
                    alert("起始可用投资金额不能为空");
                    return false;
                }
                t = $("#txtYearInvest").val() + "";
                if (t == "") {
                    alert("年结余投资保障比不能为空");
                    return false;
                }
                t = $("#txtEndTime").val() + "";
                if (t == "") {
                    alert("目标截止日期不能为空");
                    return false;
                }
                t = $("#txtDescription").val() + "";
                if (t == "") {
                    alert("理财目标描述不能为空");
                    return false;
                }
                t = $("#txtTargetFund").val() + "";
                if (t == "") {
                    alert("理财目标金额不能为空");
                    return false;
                }
                t = $("#txtTargetDescription").val() + "";
                if (t == "") {
                    alert("目标描述不能为空");
                    return false;
                }
            }
            else {
                var t = $("#txtNameTest").val() + "";
                if (t == "") {
                    alert("姓名不能为空");
                    return false;
                }
                t = $("#txtMobilTest").val() + "";
                if (t == "") {
                    alert("手机号码不能为空");
                    return false;
                }
            }
            return true;
        }
</script>
</asp:Content>
